package com.pxmeta.app.controller.third;

import com.pxmeta.common.core.domain.AjaxResult;
import com.pxmeta.common.utils.SignUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/wx")
@Api(tags = "微信相关",value = "微信相关")
public class WxController {
    @ApiOperation("获取微信分享配置")
    @GetMapping("/getShareConfig")
    public AjaxResult getShareConfig(@RequestParam String shareUrl){
        Map<String, String> result = SignUtil.getResult(shareUrl);
        return AjaxResult.success(result);
    }
}
